package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

   public abstract UploadTrackVo uploadTrack(MultipartFile file);

   void saveTrackInfo(TrackInfoVo trackInfoVo);

   IPage<TrackListVo> findUserTrackPage(Integer pageNum, Integer pageSize, TrackInfoQuery trackInfoQuery);

   void updateTrackInfo(Long id, TrackInfoVo trackInfoVo);

   void removeTrackInfo(Long id);

    IPage<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Integer pageNo, Integer pageSize);

    void trackStatUpdate(TrackStatMqVo trackStatMqVo);

    TrackStatVo getTrackStatVo(Long trackId);

    List<TrackPayVo> findUserTrackPaidList(Long trackId);

    List<TrackInfo> findPaidTrackInfoList(Long trackId, Integer trackCount);
}
